//package github.ziwukun.jsonql.analysis;
//
//
//import org.junit.Test;
//
//import github.ziwukun.jsonql.lang.JsonQLWhere;
//import github.ziwukun.jsonql.orm.ContainerDefine;
//import github.ziwukun.jsonql.orm.anno.Container;
//import github.ziwukun.jsonql.orm.anno.ContainerField;
//import github.ziwukun.jsonql.orm.anno.ContainerType;
//import github.ziwukun.jsonql.orm.anno.Document;
//import github.ziwukun.jsonql.orm.anno.Id;
//import github.ziwukun.jsonql.orm.anno.Root;
//
//public class ContainerAndJsonQLWhereTest001 {
//
//	@Test
//	public void test001() {
//		ContainerDefine user = ContainerDefine.createInstanceFromRootClass(User.class);
//		JsonQLWhere where = JsonQLWhere.createBuilder().eq("name", "zhangdan")
//			.prop("address", address -> {
//				address.eq("province", "beijing")
//					.eq("city", "dongchengqu");
//			}).lt("birthday", "1990-01-01").build();
//		
//		
//		ContainerAndWhere containerAndWhere = new ContainerAndWhere(user, where);
//		System.out.println(containerAndWhere.singleContainerWhere().toJsonQL());
//		System.out.println(containerAndWhere.singleContainerFieldWhere().toJsonQL());
//	}
//	
//	
//	@Root
//	@Container(type = ContainerType.MONGO)
//	static class User{
//		@Id
//		@ContainerField(name="t_name")
//		private String id;
//		@ContainerField(name="t_name")
//		private String name;
//		@ContainerField(name="t_age")
//		private String age;
//		@ContainerField
//		private Address address;
//	}
//	
//	//@Container(type = ContainerType.MYSQL)
//	@Document
//	static class Address{
//		@ContainerField
//		private String province;
//		@ContainerField(name="t_city")
//		private String city;
//		@ContainerField
//		private String district;
//	}
//}
